package com.chen.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chen.blog.common.api.CommonResult;
import com.chen.blog.model.Follow;
import com.chen.blog.model.User;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author chen
 * @since 2022-01-24
 */
public interface FollowService extends IService<Follow> {

    /**
     * 获取热门作者功能
     *
     * @return
     */
    List<Map<String, Object>> getHotAuthor();

    /**
     * 获取指定id用户的关注列表功能
     *
     * @param currentPage
     * @param pageSize
     * @param user
     * @return
     */
    CommonResult getByPage(Integer currentPage, Integer pageSize, User user);
}
